<#--
/****************************************************
 * Description: 角色权限的列表页面
 * Copyright:   Copyright (c) 2013
 * Company:     beiwaionline
 * @author      bfsu
 * @version     1.0
 * @see
	HISTORY
    *  2013-08-08 bfsu Create File
**************************************************/
-->
<#include "/view/templates/ace/ace-inc.ftl">
<@html>
<@head>
<script type="text/javascript">

</script>

</@head>
<@body>

<#if customer??>
<@nav '<a href="#" onclick="bfsu.html(\'${base}/yihang/customer/index\')">客户管理</a>','客户（${customer.name}）的车辆列表'/>
<#else>
<@nav '车辆管理','车辆权限'/>
</#if>

<@content url="${base}/yihang/vehicle/list">
<@query>
    <input type='hidden' name='customerId' value='${customer?exists?then(customer.id?c, '')}' />
    <@querygroup  title='客户名称'><input type='text' name='customerName' class="form-control" placeholder="输入客户名称"></@querygroup>
	<@querygroup  title='车名称'><input type='text' name='name' class="form-control" placeholder="输入车辆名称"></@querygroup>
	<@querygroup  title='车牌号'><input type='text' name='vehicleNo' class="form-control" placeholder="输入车牌号"></@querygroup>
</@query>

<@button icon="plus" 	 type="primary" onclick="bfsu.add('${base}/yihang/vehicle/input','添加车辆');">添加</@button>
<@button icon="pencil" type="primary" onclick="bfsu.edit('${base}/yihang/vehicle/input','修改车辆')">修改</@button>
<@button icon="remove" type="primary" onclick="bfsu.del('${base}/yihang/vehicle/delete','删除车辆？');">删除</@button>
<@button icon="pencil" type="primary" onclick="bfsu.batchEdit('${base}/yihang/vehicle/dealWithCustomerView/input','关联客户');">关联客户</@button>
</@content>

</@body>
</@html>